<template>
	<div id="app">
		<router-view />
	</div>
</template>
<script>
	export default {
		name: 'app',
		mounted: function() {
			let flag = navigator.userAgent.match(
				/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i
			)
			if (flag) {
				this.$router.push({
					path:"mobile"
				})
			}else{
				this.$router.push({
					path:"/"
				})
			}
		}
	}
</script>
<style lang="scss">
	body {
		margin: 0;
	}

	#app {
		font-family: Avenir, Helvetica, Arial, sans-serif;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
	}
</style>
